<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/

Route::group(['middleware' => ['web']], function () {
    Route::get('/home', 'HomeController@index');
    Route::auth();
});

Route::group(['prefix' => 'admin', 'namespace' => 'Admin','middleware' => ['web', 'auth']], function ($router) {
    $router->get('/', 'IndexController@index');
    $router->get('/i18n', 'IndexController@dataTableI18n');

    /*用户*/
    require(__DIR__ . '/Routes/UserRoute.php');
    //权限
    require(__DIR__ . '/Routes/PermissionRoute.php');
    /*菜单*/
    require(__DIR__ . '/Routes/MenuRoute.php');
    // 角色
    require(__DIR__ . '/Routes/RoleRoute.php');
	
    //收入明细管理
   require(__DIR__.'/Routes/IncomeRoute.php');
   
    //二级巴收入明细
   require(__DIR__.'/Routes/DayRoute.php');	
   
   //展示支出明细
   require(__DIR__.'/Routes/MoneyRoute.php');
   
   // 类别添加
   require(__DIR__.'/Routes/SettingRoute.php');
   // 阿米巴展示全部的
   require(__DIR__.'/Routes/AmibaRoute.php');
   
     // 阿米巴展示全部的
   require(__DIR__.'/Routes/CountBarRoute.php');
   
	
});